package top.wugy.blog.searcher;

import com.jfinal.plugin.IPlugin;

/**
 * wugy on 2017/11/15 10:10
 */
public class SearcherPlugin implements IPlugin {

    private static ISearcher mSearcher;

    public SearcherPlugin (ISearcher searcher) {
        mSearcher = searcher;
    }

    @Override
    public boolean start() {
        SearcherKit.init(mSearcher);
        return true;
    }

    @Override
    public boolean stop() {
        return true;
    }
}
